package com.xsm.DataBase;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;

public class initDataBase {
	DataHelper helper;
	Context context;
	String userid;
	SQLiteDatabase sqLiteDatabase;
	public initDataBase(Context context,String userid){	
		this.context=context;
		this.userid=userid;
		helper=new DataHelper(context,"XSM",null,1);
		sqLiteDatabase=helper.getWritableDatabase();
	}

public void creatTable(){
String sqlString="create table '"+userid+"Message' (userid int primary key,level text,name text,sex text,icon text,school text,jindou text,issuephone text,signature text,email text)";
try {
	sqLiteDatabase.execSQL(sqlString);
} catch (Exception e) {
	Log.d("my", e+"");
}
sqLiteDatabase.close();
helper.close();
}

}
